projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0726148
)
entry: Fix baseline alignment
author
Timm Bäder
<mail@baedert.org>
Tue, 4 Jul 2017 13:22:58 +0000
(15:22 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000
(21:27 -0400)
Since we only look at priv->text_baseline later on, it would be useful
to actually set it to a useful value.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index 5b04ef7117f2278cbeae478cc1d8ded414b06832..baaa6906d7f8b8f069dbcb1632830609ceccb157 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-3110,7
+3110,7
@@
gtk_entry_size_allocate (GtkWidget *widget,
GtkAllocation child_clip;
gint i;
- priv->text_baseline =
-1
;
+ priv->text_baseline =
gtk_widget_get_allocated_baseline (widget)
;
priv->text_x = 0;
priv->text_width = allocation->width;